import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/muyuan";

// 查询用户列表
export function listUser(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}

// 新增用户
export function addUser(data) {
  return request({
    url: '/system/user/childUser',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateUser(data) {
  return request({
    url: '/system/user/childUser',
    method: 'put',
    data: data
  })
}
// 删除用户
export function delUser(userId) {
    return request({
      url: '/system/user/' + userId,
      method: 'delete'
    })
  }